## Docker 镜像构建
#FROM maven:3.6.3-adoptopenjdk-8 as builder
## Copy local code to the container image.
#COPY pom.xml .
#COPY src ./src
## 设置工作目录
#WORKDIR /app
## Build a release artifact.
#RUN mvn package -DskipTests
#
## Run the web service on container startup.
#CMD ["java","-jar","/app/target/Parner-matching-0.0.1-SNAPSHOT.jar","--spring.profiles.active=prod"]

# 使用openjdk:8-jdk-alpine作为基础镜像
FROM maven:3.5-jdk-8-alpine as builder

# Copy local code to the container image.
WORKDIR /app
COPY pom.xml .
COPY src ./src

# Build a release artifact.
RUN mvn package -DskipTests

# Run the web service on container startup.
CMD ["java","-jar","/app/target/Partner-matching-0.0.1-SNAPSHOT.jar","--spring.profiles.active=prod"]